<!-- thanh toolbar -->
<?php $this->placeholder('toolbar')->captureStart();?>
<?php echo $this->partial('index/toolbar/excel.phtml', 'admin') ?>
<?php echo $this->partial('index/toolbar/excel-all.phtml', 'admin') ?>
<?php $this->placeholder('toolbar')->captureEnd();?>
<!-- / --> 

<form id='adminForm' name='adminForm' method='post' action=''>

	<!-- phần tìm kiếm -->
	<fieldset id='filter-bar' style='height: auto'>
		<?php echo $this->partial('index/search/layout.phtml', 'admin',array (  	
			 $this->partial('index/search/search.phtml', 'admin',array('label'=>$this->captions,'value'=>$this->inventory_product_code,'name'=>'inventory_product_code')),
			 $this->partial('index/search/search.phtml', 'admin',array('label'=>$this->captions,'value'=>$this->inventory_lot_code,'name'=>'inventory_lot_code')),
			 $this->partial('index/search/submit.phtml', 'admin') 
		 )); ?>		 
	</fieldset>	
	<!-- / -->
	
	<!-- danh sách hiển thị -->
	<div class='clr'> </div>
	<table class='adminlist'>
		<thead>			
			<tr>
				<?php echo $this->partial('index/manage/no-save-order.phtml', 'admin'); ?>
				<th>
					<?php echo $this->partial('index/manage/header.phtml','admin',array('caption'=>$this->captions,'column'=>'inventory_product_code')); ?>
				</th>
				<th>
					<?php echo $this->partial('index/manage/header.phtml','admin',array('caption'=>$this->captions,'column'=>'product_name')); ?>
				</th>
				<th>
					<?php echo $this->partial('index/manage/header.phtml','admin',array('caption'=>$this->captions,'column'=>'inventory_product_unit_code')); ?>
				</th>				
				<th>
					<?php echo $this->partial('index/manage/header.phtml','admin',array('caption'=>$this->captions,'column'=>'inventory_quantity')); ?>
				</th>
				<th>
					<?php echo $this->partial('index/manage/header.phtml','admin',array('caption'=>$this->captions,'column'=>'location_name')); ?>
				</th>
				<th>
					<?php echo $this->partial('index/manage/header.phtml','admin',array('caption'=>$this->captions,'column'=>'inventory_product_time')); ?>
				</th>
				
				<th>
					<?php echo $this->partial('index/manage/header.phtml','admin',array('caption'=>$this->captions,'column'=>'inventory_expire_time')); ?>
				</th>
				<th>
					<?php echo $this->partial('index/manage/header.phtml','admin',array('caption'=>$this->captions,'column'=>'inventory_lot_code')); ?>
				</th>
			</tr>
		</thead>
		<tbody>
		<?php if (count($this->paginator) > 0): $no=0;?>
		<?php foreach ($this->paginator as $row): ?>
			<tr class='row<?php echo ($no++)%2 ?>'>
				<?php echo $this->partial('index/manage/order.phtml', 'admin',array($no)); ?>
				<td class="is_code">
					<?php echo $row->inventory_product_code; ?>
				</td>
				<td class='left'>
					<?php echo $row->m_Array['product_name']; ?>
				</td>
				<td class='left'>
					<?php echo $row->inventory_product_unit_code; ?>
				</td>
				<td class='right'>
					<?php echo $this->partial('index/format/int.phtml','admin',array($row->inventory_quantity)); ?>
				</td>
				<td class='left'>
					<?php echo $row->m_Array['location_name']; ?>
				</td>				
				<td class='center'>
					<?php echo $this->partial('index/format/time.phtml','admin',array($row->inventory_product_time)); ?>
				</td>
				<td class='center'>
					<?php echo $this->partial('index/format/time.phtml','admin',array($row->inventory_expire_time)); ?>
				</td>
				<td class='left'>
					<?php echo $row->inventory_lot_code; ?>
				</td>
			</tr>
		<?php endforeach; ?>
		<?php endif; ?>
		</tbody>
		<tfoot>
			<tr>
				<td colspan='11'>
					<div class='container'>
						<?php echo $this->paginationControl($this->paginator) ?>
					</div>
				</td>
			</tr>
		</tfoot>
	</table>
	<!-- / -->
	
</form>
